package com.atguigu.java1;

public class MethodArgsTest {
		public static void main(String[] args) {
				MethodArgsTest test = new MethodArgsTest();
				test.show("heloo","world");
		}
		//可变个数形参
		public void show(String ... s){
			
			    //遍历形参
				for(int i = 0; i < s.length; i++){
						System.out.println(s[i]);
				}
		}
}
